/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package buildings.reflection;

/**
 *
 * @author VS
 */
public class ReflectionClass {
    
    public static double sum(Double ... in) {
        double sum = 0;
        for (int i = 0; i < in.length; i++) {
            sum += in[i];
        }
        System.out.print("Суммирование завершено: ");
        return sum;
    }
    
    public static double multiplication(Double ... in) {
        double mult = 1;
        for (int i = 0; i < in.length; i++) {
            mult *= in[i];
        }
        System.out.print("Умножение завершено: ");
        return mult;
    }
}
